﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master Resources/XLMaster.Master"
    AutoEventWireup="true" CodeBehind="AddOrder.aspx.cs" Inherits="XclusiveClient.AddOrder" %>

<script runat="server">
    protected void Page_Load(object sender, EventArgs e)
    {
        string ktr, mtr;
        for (int k = 0; k < 24; k++)
        {
            for (int m = 0; m < 60; m++)
            {
                if (k < 10)
                {
                    ktr = "0" + k.ToString();
                }
                else
                {
                    ktr = k.ToString();
                }
                if (m < 10)
                {
                    mtr = "0" + m.ToString();
                }
                else
                {
                    mtr = m.ToString();
                }
                ddlShipTime.Items.Add(new ListItem(ktr + ":" + mtr));
            }
        }
    }
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="server">
    <h1 style="text-align: center">
        Create An Order</h1>
    <br />
    <div id="wrapper-v2" style="margin-left: 50px">
        <table style="width: 750px">
            <tr>
                <td style="text-align: right">
                    Order Status:
                </td>
                <td style="text-align: left">
                    <asp:RadioButtonList ID="RdbStatus" runat="server">
                        <asp:ListItem>Pending</asp:ListItem>
                        <asp:ListItem>Ready for Shipping</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td style="text-align: right">
                    Order Ship Date:
                </td>
                <td style="text-align: left" rowspan="0">
                    <asp:Calendar ID="calShipDate" runat="server" BackColor="White" BorderColor="#999999"
                        CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
                        ForeColor="Black" Height="150px" Width="250px">
                        <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
                        <NextPrevStyle VerticalAlign="Bottom" />
                        <OtherMonthDayStyle ForeColor="#808080" />
                        <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                        <SelectorStyle BackColor="#CCCCCC" />
                        <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
                        <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                        <WeekendDayStyle BackColor="#FFFFCC" />
                    </asp:Calendar>
                </td>
            </tr>
            <tr>
                <td style="text-align: right">
                    Order Ship Time:
                </td>
                <td style="text-align: left">
                    <asp:DropDownList ID="ddlShipTime" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                </td>
            </tr>
            <tr>
                <td style="text-align: right">
                    Order Ship Type:
                </td>
                <td style="text-align: left">
                    <asp:DropDownList ID="ddlShipType" runat="server">
                        <asp:ListItem>Land</asp:ListItem>
                        <asp:ListItem>Sea</asp:ListItem>
                        <asp:ListItem>Air</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                </td>
            </tr>
            <tr>
                <td style="text-align: right">
                    Destination Address:
                </td>
                <td style="text-align: left">
                    <asp:TextBox ID="tbxAddress" runat="server" Width="250px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="text-align: right">
                    Employee In-Charged of Delivery (ID):
                </td>
                <td style="text-align: left">
                    <asp:DropDownList ID="ddlEmpID" runat="server">
                        <asp:ListItem Value="101A">101A (Adrian)</asp:ListItem>
                        <asp:ListItem Value="102B">102B (Bryan)</asp:ListItem>
                        <asp:ListItem Value="103C">103C (Catherine)</asp:ListItem>
                        <asp:ListItem Value="104D">104D (Danny)</asp:ListItem>
                        <asp:ListItem Value="105E">105E (Elaine)</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                </td>
            </tr>
            <tr>
                <td style="text-align: right">
                    Inventory List ID:
                </td>
                <td style="text-align: left">
                    <asp:DropDownList ID="ddlListID" runat="server">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
    </div>
    <div style="text-align: center">
        <br />
        <asp:Label ID="lblStatus" runat="server" ForeColor="Red"></asp:Label>
        <br />
        <asp:Button ID="btnCreateOrder" runat="server" Text="Create Order" OnClick="btnCreateOrder_Click" />
        <br />
        <br />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic"
            ErrorMessage="*Shipment Address Is Required" ControlToValidate="tbxAddress" ForeColor="Red"></asp:RequiredFieldValidator>
        <br />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="Dynamic"
            ErrorMessage="*Order Status Is Required" ControlToValidate="RdbStatus" ForeColor="Red"></asp:RequiredFieldValidator>
    </div>
</asp:Content>
